package com.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.domain.dto.*;
import com.mall.domain.po.User;
import com.mall.domain.response.Response;
import com.mall.domain.vo.UserLoginVO;

import java.util.List;

public interface UserService extends IService<User> {
    UserLoginVO login(LoginFormDTO loginFormDTO);

    void deductMoney(String pw, Integer amount);

    void send(SendVerificationCodeReqDTO sendVerificationCodeReqDTO);

    void register(RegisterUserReqDTO registerUserReqDTO);

    Response<UserMessage> getUserMessage();

    Response<?> updateMessage(String username,String phone);

    Response<?> freeze(UserBatchDTO userIds);

    Response<?> deleteBatch(UserBatchDTO userBatchDTO);

    Response<?> add(UserDTO userDTO);

    Response<Integer> getmoney();
}
